package cn.lopr.im.api.dao;

import cn.lopr.im.api.bean.Message;
import org.springframework.stereotype.Component;

import java.util.List;

@Component(value = "messageMapper")
public interface MessageMapper {
    int insert(Message record);

    int insertSelective(Message record);

    Message selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Message record);


    int updateByPrimaryKey(Message record);

    List<Message> selectByRecord(Message message);

    void updateReadMessage(String toUser);

    void updateReadMessageByType(String toUser, String fromUser, String type);

}